    	<div class="position">当前位置：<a href="<?php echo Yii::app()->createUrl('member/index/index');?>"><?php echo t('Member','web') ?></a> &gt; <a href="<?php echo Yii::app()->createUrl('member/index/refund');?>">客户服务</a> &gt; 售后管理</div>
        <div class="hr_15"></div>
		<div class="steps">
            <ul class="fs_14 c_f">
                <li class="cur first"><span class="one">第一步,买家申请退款</span></li>
                <li class=""><span class="two">第二步，卖家处理退款申请</span></li>
                <li class="last"><span class="three">第三步，退款成功</span></li> 
            </ul>
        </div>
        <div class="hr_20"></div>
        <!--售后管理 start-->
        <div class="refund_box step_box">
        <?php if($model->zr_order_status == 1 && $model->zr_pay_status==4){?>
        	<!--未发货售后  start-->
        	<div class="step_info">
            	<div class="step_status">
                	<div class="status">
                        <p><span class="ico_big ico_done"></span><strong class="fs_14">退款成功！退款金额返回您的支付帐号！</strong></p>
                        <p>在退款成功后1-2个工作日内退款到您支付时使用的支付帐号中。如果2个工作日内未收到退款，请联系卖家客服！</p>
                    </div>
                    <ul class="form_list">
                    	<li class="c_f"><span class="tit f_l">退款凭证：</span>
                        	<div class="cert_img f_l">
                            	<ul class="c_f">
									<?php 
                                        for($i=0; $i<3; $i++){
                                            if(isset($model->zr_cmp_pic[$i])){
                                                echo '<li><img src="'.$model->zr_cmp_pic[$i].'" alt="" /></li>';
                                            }else{
                                                echo '<li><img src="/images/cert_img.jpg" alt="" /></li>';
                                            }
                                        }
                                    ?>
                                </ul>
                        	</div>
                        </li>
                    </ul>
                </div>
                <ul class="form_list">
                    <li><span class="tit">售后编号：</span><span><?php echo $model->zr_id;?></span></li>
                    <li><span class="tit">申请售后时间：</span><span><?php echo date('Y-m-d H:i:s',$model->inputtime);?></span></li>
                    <li><span class="tit">售后类型：</span><span>(无此项)卖家未发货，全额退款</span></li>
                    <li><span class="tit">售后状态：</span><span>退款成功</span></li>
                    <li><span class="tit">需要退款金额：</span><span><strong class="c_f60"><?php echo $model->zr_amount;?></strong> 元</span></li>
                    <li><span class="tit">售后原因：</span><span><?php echo $this->refundReason[$model->zr_reason];?></span></li>
                    <li><span class="tit">售后说明：</span><span><?php echo $model->zr_content;?></span></li>
                </ul>
            </div>
            <!--未发货退款  end -->
		<?php }elseif($model->zr_pay_status == 4){?>
            <!--已发货退款  start-->
            <div class="step_info">
            	<div class="step_status">
                	<div class="status">
                        <p><span class="ico_big ico_done"></span><strong class="fs_14">退款成功！退款金额返回您的支付帐号！</strong></p>
                        <p>在退款成功后1-2个工作日内退款到您支付时使用的支付帐号中。</p>
                    </div>
                    <ul class="form_list">
                    	<li class="c_f"><span class="tit f_l">退款凭证：</span>
                        	<div class="cert_img f_l">
                            	<ul class="c_f">
									<?php 
                                        for($i=0; $i<3; $i++){
                                            if(isset($model->zr_cmp_pic[$i])){
                                                echo '<li><img src="'.$model->zr_cmp_pic[$i].'" alt="" /></li>';
                                            }else{
                                                echo '<li><img src="/images/cert_img.jpg" alt="" /></li>';
                                            }
                                        }
                                    ?>
                                </ul>
                        	</div>
                        </li>
                        <li><span class="tit">说明：</span><span>物流公司已经发送了货特</span></li>
                    </ul>
                </div>
                <div class="info d_n">
                	<h3>物流信息</h3>
                    <ul class="form_list">
                        <li><span class="tit">物流公司：</span><span>畅通速递</span></li>
                        <li><span class="tit">运单号码：</span><span>256366556</span></li>
                        <li><span class="tit">退货说明：</span><span>已经发货</span></li>
                    </ul>
                </div>
                <ul class="form_list">
                    <li><span class="tit">售后编号：</span><span>5025955113008</span></li>
                    <li><span class="tit">申请售后时间：</span><span>2012-04-24 20:35</span></li>
                    <li><span class="tit">售后类型：</span><span>卖家已发货，无需退货</span><span class="d_n">买家申请退款，需退货</span></li>
                    <li><span class="tit">售后状态：</span><span>退款成功</span></li>
                    <li><span class="tit">需要退款金额：</span><span><strong class="c_f60">98.28</strong> 元</span></li>
                    <li><span class="tit">售后原因：</span><span>商品质量问题</span></li>
                    <li class="c_f"><span class="tit f_l">退款凭证：</span>
                        	<div class="cert_img f_l">
                            	<ul class="c_f">
									<?php 
                                        for($i=0; $i<3; $i++){
                                            if(isset($model->zr_user_pic[$i])){
                                                echo '<li><img src="'.$model->zr_user_pic[$i].'" alt="" /></li>';
                                            }else{
                                                echo '<li><img src="/images/cert_img.jpg" alt="" /></li>';
                                            }
                                        }
                                    ?>

                                </ul>
                        	</div>
                        </li>
                    <li><span class="tit">售后说明：</span><span>我不想买了</span></li>
                </ul>           
            </div>
		<?php
			}else{//退款失败			
		?>
			<!--退款失败  start-->
            <div class="step_info">
            	<div class="step_status">
                	<div class="status">
                        <p><span class="ico_big ico_fail"></span><strong class="fs_14 mr30">卖家不同意退款！</strong><span><a href="javascript:" class="c_06c mr5">请求商城客服介入</a><a href="javascript:" class="ico_qq qq_online2">在线客服</a></span></p>
                    </div>
                    <ul class="form_list">
                    	<li class="c_f"><span class="tit f_l">拒绝凭证：</span>
                        	<div class="cert_img f_l">
                            	<ul class="c_f">
									<?php 
                                        for($i=0; $i<3; $i++){
                                            if(isset($model->zr_cmp_pic[$i])){
                                                echo '<li><img src="'.$model->zr_cmp_pic[$i].'" alt="" /></li>';
                                            }else{
                                                echo '<li><img src="/images/cert_img.jpg" alt="" /></li>';
                                            }
                                        }
                                    ?>
                                </ul>
                        	</div>
                        </li>
                        <li><span class="tit">说明：</span><span>物流公司已经发货</span></li>
                    </ul>
                </div>
                <div class="info">
                	<h3>物流信息</h3>
                    <ul class="form_list">
                        <li><span class="tit">物流公司：</span><span>畅通速递</span></li>
                        <li><span class="tit">运单号码：</span><span>256366556</span></li>
                        <li><span class="tit">退货说明：</span><span>已经发货</span></li>
                    </ul>
                </div>
                <ul class="form_list">
                    <li><span class="tit">售后编号：</span><span>5025955113008</span></li>
                    <li><span class="tit">申请售后时间：</span><span>2012-04-24 20:35</span></li>
                    <li><span class="tit">售后类型：</span><span>卖家已发货，无需退货</span><span class="d_n">买家申请退款，需退货</span></li>
                    <li><span class="tit">售后状态：</span><span>退款成功</span></li>
                    <li><span class="tit">需要退款金额：</span><span><strong class="c_f60">98.28</strong> 元</span></li>
                    <li><span class="tit">售后原因：</span><span>商品质量问题</span></li>
                    <li class="c_f"><span class="tit f_l">售后凭证：</span>
                        	<div class="cert_img f_l">
                            	<ul class="c_f">
									<?php 
                                        for($i=0; $i<3; $i++){
                                            if(isset($model->zr_user_pic[$i])){
                                                echo '<li><img src="'.$model->zr_user_pic[$i].'" alt="" /></li>';
                                            }else{
                                                echo '<li><img src="/images/cert_img.jpg" alt="" /></li>';
                                            }
                                        }
                                    ?>

                                </ul>
                        	</div>
                        </li>
                    <li><span class="tit">售后说明：</span><span>我不想买了</span></li>
                </ul>
            </div>
            <!--退款失败  end -->
        <?php }?>
            <!--已发货退款  end -->
            <table class="list_table" cellpadding="0" cellspacing="0" width="100%">
            	<tr>
                	<th width="35%">宝贝信息</th>
                    <!-- <th width="15%">卖家</th> -->
                    <th width="12%">单价（元）</th>
                    <th width="12%">数量</th>
                    <th width="14%">优惠</th>
                    <th width="12%">小计（元）</th>
                </tr>
                <tr>
                	<td class="pro tl">
                    	<div class="c_img c_img50"><a href="<?php echo Yii::app()->createUrl('home/product/detail',array('id'=>$product['zp_id']));?>" title="" target="_blank"><img width="50" height="50" src="<?php echo $product->zp_pic; ?>" alt="" /></a></div>
                   		<p class="title_pro"><a class="c_06c" href="<?php echo Yii::app()->createUrl('home/product/detail',array('id'=>$product['zp_id']));?>" title="<?php echo $product['zp_name'];?>" target="_blank"><?php echo $product['zp_name'];?></a></p>
                    </td>
                    <!-- <td><a class="c_06c" href="<?php //echo Company::createCompanyUrl($product->company->zc_sub_domain);?>" title=""><?php //echo $product->company->zc_name;?></a></td> -->
                    <td><?php echo $ordproduct->zop_real_price;?></td>
                    <td><?php echo $ordproduct->zop_nums;?></td>
                    <td>
                    	<?php 
							foreach($discount as $key=>$value){
								echo OrdDiscount::getDiscountType($value->zod_type).'：-'.$value->zod_price.'</br>';
							}
						?>
                    </td>
                    <td><span class="fw_b fs_14 c_f60"><?php echo $ordproduct->zop_real_price*$ordproduct->zop_nums;?></span></td>
                </tr>
            </table>
        </div>    
    	<!--售后管理 end-->